package com.xxx.test;

import com.xxx.extend.Worker;
import com.xxx.extend.Student;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/12 16:06
 * @Copyright 博为峰
 */
public class ExtendsDemo01 {
    public static void main(String[] args) {
        Student student = new Student("张三", 20);
        student.setScore(95);
        student.eat();

        Worker worker = new Worker();
        worker.name = "李四";
        worker.work();
        worker.setSalary(9000);
        worker.eat();
    }
}
